const state ={
	address:JSON.parse(uni.getStorageSync('address')||"{}")
}
const mutations={
		UPADDRESS(state,address){
			state.address=address
			console.log(address)
			this.commit('SAVEADDRESS')
		},
		SAVEADDRESS(state){
			uni.setStorageSync('address',JSON.stringify(state.address))
		}
}
const actions ={
	
}
const getters={
	addstr(state){
		if(!state.address.provinceName)return ''
		return state.address.provinceName+state.address.cityName+state.address.countyName+state.address.detailInfo
	}
}
export default{
	state,
	mutations,
	actions,
	getters
}